package com.system.common.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class BisNurseBagExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public BisNurseBagExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andBagIdIsNull() {
            addCriterion("bag_id is null");
            return (Criteria) this;
        }

        public Criteria andBagIdIsNotNull() {
            addCriterion("bag_id is not null");
            return (Criteria) this;
        }

        public Criteria andBagIdEqualTo(String value) {
            addCriterion("bag_id =", value, "bagId");
            return (Criteria) this;
        }

        public Criteria andBagIdNotEqualTo(String value) {
            addCriterion("bag_id <>", value, "bagId");
            return (Criteria) this;
        }

        public Criteria andBagIdGreaterThan(String value) {
            addCriterion("bag_id >", value, "bagId");
            return (Criteria) this;
        }

        public Criteria andBagIdGreaterThanOrEqualTo(String value) {
            addCriterion("bag_id >=", value, "bagId");
            return (Criteria) this;
        }

        public Criteria andBagIdLessThan(String value) {
            addCriterion("bag_id <", value, "bagId");
            return (Criteria) this;
        }

        public Criteria andBagIdLessThanOrEqualTo(String value) {
            addCriterion("bag_id <=", value, "bagId");
            return (Criteria) this;
        }

        public Criteria andBagIdLike(String value) {
            addCriterion("bag_id like", value, "bagId");
            return (Criteria) this;
        }

        public Criteria andBagIdNotLike(String value) {
            addCriterion("bag_id not like", value, "bagId");
            return (Criteria) this;
        }

        public Criteria andBagIdIn(List<String> values) {
            addCriterion("bag_id in", values, "bagId");
            return (Criteria) this;
        }

        public Criteria andBagIdNotIn(List<String> values) {
            addCriterion("bag_id not in", values, "bagId");
            return (Criteria) this;
        }

        public Criteria andBagIdBetween(String value1, String value2) {
            addCriterion("bag_id between", value1, value2, "bagId");
            return (Criteria) this;
        }

        public Criteria andBagIdNotBetween(String value1, String value2) {
            addCriterion("bag_id not between", value1, value2, "bagId");
            return (Criteria) this;
        }

        public Criteria andBagNameIsNull() {
            addCriterion("bag_name is null");
            return (Criteria) this;
        }

        public Criteria andBagNameIsNotNull() {
            addCriterion("bag_name is not null");
            return (Criteria) this;
        }

        public Criteria andBagNameEqualTo(String value) {
            addCriterion("bag_name =", value, "bagName");
            return (Criteria) this;
        }

        public Criteria andBagNameNotEqualTo(String value) {
            addCriterion("bag_name <>", value, "bagName");
            return (Criteria) this;
        }

        public Criteria andBagNameGreaterThan(String value) {
            addCriterion("bag_name >", value, "bagName");
            return (Criteria) this;
        }

        public Criteria andBagNameGreaterThanOrEqualTo(String value) {
            addCriterion("bag_name >=", value, "bagName");
            return (Criteria) this;
        }

        public Criteria andBagNameLessThan(String value) {
            addCriterion("bag_name <", value, "bagName");
            return (Criteria) this;
        }

        public Criteria andBagNameLessThanOrEqualTo(String value) {
            addCriterion("bag_name <=", value, "bagName");
            return (Criteria) this;
        }

        public Criteria andBagNameLike(String value) {
            addCriterion("bag_name like", value, "bagName");
            return (Criteria) this;
        }

        public Criteria andBagNameNotLike(String value) {
            addCriterion("bag_name not like", value, "bagName");
            return (Criteria) this;
        }

        public Criteria andBagNameIn(List<String> values) {
            addCriterion("bag_name in", values, "bagName");
            return (Criteria) this;
        }

        public Criteria andBagNameNotIn(List<String> values) {
            addCriterion("bag_name not in", values, "bagName");
            return (Criteria) this;
        }

        public Criteria andBagNameBetween(String value1, String value2) {
            addCriterion("bag_name between", value1, value2, "bagName");
            return (Criteria) this;
        }

        public Criteria andBagNameNotBetween(String value1, String value2) {
            addCriterion("bag_name not between", value1, value2, "bagName");
            return (Criteria) this;
        }

        public Criteria andBagTotalPriceIsNull() {
            addCriterion("bag_total_price is null");
            return (Criteria) this;
        }

        public Criteria andBagTotalPriceIsNotNull() {
            addCriterion("bag_total_price is not null");
            return (Criteria) this;
        }

        public Criteria andBagTotalPriceEqualTo(Double value) {
            addCriterion("bag_total_price =", value, "bagTotalPrice");
            return (Criteria) this;
        }

        public Criteria andBagTotalPriceNotEqualTo(Double value) {
            addCriterion("bag_total_price <>", value, "bagTotalPrice");
            return (Criteria) this;
        }

        public Criteria andBagTotalPriceGreaterThan(Double value) {
            addCriterion("bag_total_price >", value, "bagTotalPrice");
            return (Criteria) this;
        }

        public Criteria andBagTotalPriceGreaterThanOrEqualTo(Double value) {
            addCriterion("bag_total_price >=", value, "bagTotalPrice");
            return (Criteria) this;
        }

        public Criteria andBagTotalPriceLessThan(Double value) {
            addCriterion("bag_total_price <", value, "bagTotalPrice");
            return (Criteria) this;
        }

        public Criteria andBagTotalPriceLessThanOrEqualTo(Double value) {
            addCriterion("bag_total_price <=", value, "bagTotalPrice");
            return (Criteria) this;
        }

        public Criteria andBagTotalPriceIn(List<Double> values) {
            addCriterion("bag_total_price in", values, "bagTotalPrice");
            return (Criteria) this;
        }

        public Criteria andBagTotalPriceNotIn(List<Double> values) {
            addCriterion("bag_total_price not in", values, "bagTotalPrice");
            return (Criteria) this;
        }

        public Criteria andBagTotalPriceBetween(Double value1, Double value2) {
            addCriterion("bag_total_price between", value1, value2, "bagTotalPrice");
            return (Criteria) this;
        }

        public Criteria andBagTotalPriceNotBetween(Double value1, Double value2) {
            addCriterion("bag_total_price not between", value1, value2, "bagTotalPrice");
            return (Criteria) this;
        }

        public Criteria andCoverPhotoIsNull() {
            addCriterion("cover_photo is null");
            return (Criteria) this;
        }

        public Criteria andCoverPhotoIsNotNull() {
            addCriterion("cover_photo is not null");
            return (Criteria) this;
        }

        public Criteria andCoverPhotoEqualTo(String value) {
            addCriterion("cover_photo =", value, "coverPhoto");
            return (Criteria) this;
        }

        public Criteria andCoverPhotoNotEqualTo(String value) {
            addCriterion("cover_photo <>", value, "coverPhoto");
            return (Criteria) this;
        }

        public Criteria andCoverPhotoGreaterThan(String value) {
            addCriterion("cover_photo >", value, "coverPhoto");
            return (Criteria) this;
        }

        public Criteria andCoverPhotoGreaterThanOrEqualTo(String value) {
            addCriterion("cover_photo >=", value, "coverPhoto");
            return (Criteria) this;
        }

        public Criteria andCoverPhotoLessThan(String value) {
            addCriterion("cover_photo <", value, "coverPhoto");
            return (Criteria) this;
        }

        public Criteria andCoverPhotoLessThanOrEqualTo(String value) {
            addCriterion("cover_photo <=", value, "coverPhoto");
            return (Criteria) this;
        }

        public Criteria andCoverPhotoLike(String value) {
            addCriterion("cover_photo like", value, "coverPhoto");
            return (Criteria) this;
        }

        public Criteria andCoverPhotoNotLike(String value) {
            addCriterion("cover_photo not like", value, "coverPhoto");
            return (Criteria) this;
        }

        public Criteria andCoverPhotoIn(List<String> values) {
            addCriterion("cover_photo in", values, "coverPhoto");
            return (Criteria) this;
        }

        public Criteria andCoverPhotoNotIn(List<String> values) {
            addCriterion("cover_photo not in", values, "coverPhoto");
            return (Criteria) this;
        }

        public Criteria andCoverPhotoBetween(String value1, String value2) {
            addCriterion("cover_photo between", value1, value2, "coverPhoto");
            return (Criteria) this;
        }

        public Criteria andCoverPhotoNotBetween(String value1, String value2) {
            addCriterion("cover_photo not between", value1, value2, "coverPhoto");
            return (Criteria) this;
        }

        public Criteria andCoverBigPhotoIsNull() {
            addCriterion("cover_big_photo is null");
            return (Criteria) this;
        }

        public Criteria andCoverBigPhotoIsNotNull() {
            addCriterion("cover_big_photo is not null");
            return (Criteria) this;
        }

        public Criteria andCoverBigPhotoEqualTo(String value) {
            addCriterion("cover_big_photo =", value, "coverBigPhoto");
            return (Criteria) this;
        }

        public Criteria andCoverBigPhotoNotEqualTo(String value) {
            addCriterion("cover_big_photo <>", value, "coverBigPhoto");
            return (Criteria) this;
        }

        public Criteria andCoverBigPhotoGreaterThan(String value) {
            addCriterion("cover_big_photo >", value, "coverBigPhoto");
            return (Criteria) this;
        }

        public Criteria andCoverBigPhotoGreaterThanOrEqualTo(String value) {
            addCriterion("cover_big_photo >=", value, "coverBigPhoto");
            return (Criteria) this;
        }

        public Criteria andCoverBigPhotoLessThan(String value) {
            addCriterion("cover_big_photo <", value, "coverBigPhoto");
            return (Criteria) this;
        }

        public Criteria andCoverBigPhotoLessThanOrEqualTo(String value) {
            addCriterion("cover_big_photo <=", value, "coverBigPhoto");
            return (Criteria) this;
        }

        public Criteria andCoverBigPhotoLike(String value) {
            addCriterion("cover_big_photo like", value, "coverBigPhoto");
            return (Criteria) this;
        }

        public Criteria andCoverBigPhotoNotLike(String value) {
            addCriterion("cover_big_photo not like", value, "coverBigPhoto");
            return (Criteria) this;
        }

        public Criteria andCoverBigPhotoIn(List<String> values) {
            addCriterion("cover_big_photo in", values, "coverBigPhoto");
            return (Criteria) this;
        }

        public Criteria andCoverBigPhotoNotIn(List<String> values) {
            addCriterion("cover_big_photo not in", values, "coverBigPhoto");
            return (Criteria) this;
        }

        public Criteria andCoverBigPhotoBetween(String value1, String value2) {
            addCriterion("cover_big_photo between", value1, value2, "coverBigPhoto");
            return (Criteria) this;
        }

        public Criteria andCoverBigPhotoNotBetween(String value1, String value2) {
            addCriterion("cover_big_photo not between", value1, value2, "coverBigPhoto");
            return (Criteria) this;
        }

        public Criteria andOpenCardNumIsNull() {
            addCriterion("open_card_num is null");
            return (Criteria) this;
        }

        public Criteria andOpenCardNumIsNotNull() {
            addCriterion("open_card_num is not null");
            return (Criteria) this;
        }

        public Criteria andOpenCardNumEqualTo(Integer value) {
            addCriterion("open_card_num =", value, "openCardNum");
            return (Criteria) this;
        }

        public Criteria andOpenCardNumNotEqualTo(Integer value) {
            addCriterion("open_card_num <>", value, "openCardNum");
            return (Criteria) this;
        }

        public Criteria andOpenCardNumGreaterThan(Integer value) {
            addCriterion("open_card_num >", value, "openCardNum");
            return (Criteria) this;
        }

        public Criteria andOpenCardNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("open_card_num >=", value, "openCardNum");
            return (Criteria) this;
        }

        public Criteria andOpenCardNumLessThan(Integer value) {
            addCriterion("open_card_num <", value, "openCardNum");
            return (Criteria) this;
        }

        public Criteria andOpenCardNumLessThanOrEqualTo(Integer value) {
            addCriterion("open_card_num <=", value, "openCardNum");
            return (Criteria) this;
        }

        public Criteria andOpenCardNumIn(List<Integer> values) {
            addCriterion("open_card_num in", values, "openCardNum");
            return (Criteria) this;
        }

        public Criteria andOpenCardNumNotIn(List<Integer> values) {
            addCriterion("open_card_num not in", values, "openCardNum");
            return (Criteria) this;
        }

        public Criteria andOpenCardNumBetween(Integer value1, Integer value2) {
            addCriterion("open_card_num between", value1, value2, "openCardNum");
            return (Criteria) this;
        }

        public Criteria andOpenCardNumNotBetween(Integer value1, Integer value2) {
            addCriterion("open_card_num not between", value1, value2, "openCardNum");
            return (Criteria) this;
        }

        public Criteria andRemainNumIsNull() {
            addCriterion("remain_num is null");
            return (Criteria) this;
        }

        public Criteria andRemainNumIsNotNull() {
            addCriterion("remain_num is not null");
            return (Criteria) this;
        }

        public Criteria andRemainNumEqualTo(Integer value) {
            addCriterion("remain_num =", value, "remainNum");
            return (Criteria) this;
        }

        public Criteria andRemainNumNotEqualTo(Integer value) {
            addCriterion("remain_num <>", value, "remainNum");
            return (Criteria) this;
        }

        public Criteria andRemainNumGreaterThan(Integer value) {
            addCriterion("remain_num >", value, "remainNum");
            return (Criteria) this;
        }

        public Criteria andRemainNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("remain_num >=", value, "remainNum");
            return (Criteria) this;
        }

        public Criteria andRemainNumLessThan(Integer value) {
            addCriterion("remain_num <", value, "remainNum");
            return (Criteria) this;
        }

        public Criteria andRemainNumLessThanOrEqualTo(Integer value) {
            addCriterion("remain_num <=", value, "remainNum");
            return (Criteria) this;
        }

        public Criteria andRemainNumIn(List<Integer> values) {
            addCriterion("remain_num in", values, "remainNum");
            return (Criteria) this;
        }

        public Criteria andRemainNumNotIn(List<Integer> values) {
            addCriterion("remain_num not in", values, "remainNum");
            return (Criteria) this;
        }

        public Criteria andRemainNumBetween(Integer value1, Integer value2) {
            addCriterion("remain_num between", value1, value2, "remainNum");
            return (Criteria) this;
        }

        public Criteria andRemainNumNotBetween(Integer value1, Integer value2) {
            addCriterion("remain_num not between", value1, value2, "remainNum");
            return (Criteria) this;
        }

        public Criteria andMaxBuyNumIsNull() {
            addCriterion("max_buy_num is null");
            return (Criteria) this;
        }

        public Criteria andMaxBuyNumIsNotNull() {
            addCriterion("max_buy_num is not null");
            return (Criteria) this;
        }

        public Criteria andMaxBuyNumEqualTo(Integer value) {
            addCriterion("max_buy_num =", value, "maxBuyNum");
            return (Criteria) this;
        }

        public Criteria andMaxBuyNumNotEqualTo(Integer value) {
            addCriterion("max_buy_num <>", value, "maxBuyNum");
            return (Criteria) this;
        }

        public Criteria andMaxBuyNumGreaterThan(Integer value) {
            addCriterion("max_buy_num >", value, "maxBuyNum");
            return (Criteria) this;
        }

        public Criteria andMaxBuyNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("max_buy_num >=", value, "maxBuyNum");
            return (Criteria) this;
        }

        public Criteria andMaxBuyNumLessThan(Integer value) {
            addCriterion("max_buy_num <", value, "maxBuyNum");
            return (Criteria) this;
        }

        public Criteria andMaxBuyNumLessThanOrEqualTo(Integer value) {
            addCriterion("max_buy_num <=", value, "maxBuyNum");
            return (Criteria) this;
        }

        public Criteria andMaxBuyNumIn(List<Integer> values) {
            addCriterion("max_buy_num in", values, "maxBuyNum");
            return (Criteria) this;
        }

        public Criteria andMaxBuyNumNotIn(List<Integer> values) {
            addCriterion("max_buy_num not in", values, "maxBuyNum");
            return (Criteria) this;
        }

        public Criteria andMaxBuyNumBetween(Integer value1, Integer value2) {
            addCriterion("max_buy_num between", value1, value2, "maxBuyNum");
            return (Criteria) this;
        }

        public Criteria andMaxBuyNumNotBetween(Integer value1, Integer value2) {
            addCriterion("max_buy_num not between", value1, value2, "maxBuyNum");
            return (Criteria) this;
        }

        public Criteria andMinBuyNumIsNull() {
            addCriterion("min_buy_num is null");
            return (Criteria) this;
        }

        public Criteria andMinBuyNumIsNotNull() {
            addCriterion("min_buy_num is not null");
            return (Criteria) this;
        }

        public Criteria andMinBuyNumEqualTo(Integer value) {
            addCriterion("min_buy_num =", value, "minBuyNum");
            return (Criteria) this;
        }

        public Criteria andMinBuyNumNotEqualTo(Integer value) {
            addCriterion("min_buy_num <>", value, "minBuyNum");
            return (Criteria) this;
        }

        public Criteria andMinBuyNumGreaterThan(Integer value) {
            addCriterion("min_buy_num >", value, "minBuyNum");
            return (Criteria) this;
        }

        public Criteria andMinBuyNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("min_buy_num >=", value, "minBuyNum");
            return (Criteria) this;
        }

        public Criteria andMinBuyNumLessThan(Integer value) {
            addCriterion("min_buy_num <", value, "minBuyNum");
            return (Criteria) this;
        }

        public Criteria andMinBuyNumLessThanOrEqualTo(Integer value) {
            addCriterion("min_buy_num <=", value, "minBuyNum");
            return (Criteria) this;
        }

        public Criteria andMinBuyNumIn(List<Integer> values) {
            addCriterion("min_buy_num in", values, "minBuyNum");
            return (Criteria) this;
        }

        public Criteria andMinBuyNumNotIn(List<Integer> values) {
            addCriterion("min_buy_num not in", values, "minBuyNum");
            return (Criteria) this;
        }

        public Criteria andMinBuyNumBetween(Integer value1, Integer value2) {
            addCriterion("min_buy_num between", value1, value2, "minBuyNum");
            return (Criteria) this;
        }

        public Criteria andMinBuyNumNotBetween(Integer value1, Integer value2) {
            addCriterion("min_buy_num not between", value1, value2, "minBuyNum");
            return (Criteria) this;
        }

        public Criteria andPutawayTimeIsNull() {
            addCriterion("putaway_time is null");
            return (Criteria) this;
        }

        public Criteria andPutawayTimeIsNotNull() {
            addCriterion("putaway_time is not null");
            return (Criteria) this;
        }

        public Criteria andPutawayTimeEqualTo(Date value) {
            addCriterionForJDBCDate("putaway_time =", value, "putawayTime");
            return (Criteria) this;
        }

        public Criteria andPutawayTimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("putaway_time <>", value, "putawayTime");
            return (Criteria) this;
        }

        public Criteria andPutawayTimeGreaterThan(Date value) {
            addCriterionForJDBCDate("putaway_time >", value, "putawayTime");
            return (Criteria) this;
        }

        public Criteria andPutawayTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("putaway_time >=", value, "putawayTime");
            return (Criteria) this;
        }

        public Criteria andPutawayTimeLessThan(Date value) {
            addCriterionForJDBCDate("putaway_time <", value, "putawayTime");
            return (Criteria) this;
        }

        public Criteria andPutawayTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("putaway_time <=", value, "putawayTime");
            return (Criteria) this;
        }

        public Criteria andPutawayTimeIn(List<Date> values) {
            addCriterionForJDBCDate("putaway_time in", values, "putawayTime");
            return (Criteria) this;
        }

        public Criteria andPutawayTimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("putaway_time not in", values, "putawayTime");
            return (Criteria) this;
        }

        public Criteria andPutawayTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("putaway_time between", value1, value2, "putawayTime");
            return (Criteria) this;
        }

        public Criteria andPutawayTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("putaway_time not between", value1, value2, "putawayTime");
            return (Criteria) this;
        }

        public Criteria andSoldoutTimeIsNull() {
            addCriterion("soldout_time is null");
            return (Criteria) this;
        }

        public Criteria andSoldoutTimeIsNotNull() {
            addCriterion("soldout_time is not null");
            return (Criteria) this;
        }

        public Criteria andSoldoutTimeEqualTo(Date value) {
            addCriterionForJDBCDate("soldout_time =", value, "soldoutTime");
            return (Criteria) this;
        }

        public Criteria andSoldoutTimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("soldout_time <>", value, "soldoutTime");
            return (Criteria) this;
        }

        public Criteria andSoldoutTimeGreaterThan(Date value) {
            addCriterionForJDBCDate("soldout_time >", value, "soldoutTime");
            return (Criteria) this;
        }

        public Criteria andSoldoutTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("soldout_time >=", value, "soldoutTime");
            return (Criteria) this;
        }

        public Criteria andSoldoutTimeLessThan(Date value) {
            addCriterionForJDBCDate("soldout_time <", value, "soldoutTime");
            return (Criteria) this;
        }

        public Criteria andSoldoutTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("soldout_time <=", value, "soldoutTime");
            return (Criteria) this;
        }

        public Criteria andSoldoutTimeIn(List<Date> values) {
            addCriterionForJDBCDate("soldout_time in", values, "soldoutTime");
            return (Criteria) this;
        }

        public Criteria andSoldoutTimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("soldout_time not in", values, "soldoutTime");
            return (Criteria) this;
        }

        public Criteria andSoldoutTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("soldout_time between", value1, value2, "soldoutTime");
            return (Criteria) this;
        }

        public Criteria andSoldoutTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("soldout_time not between", value1, value2, "soldoutTime");
            return (Criteria) this;
        }

        public Criteria andOverdueTimeIsNull() {
            addCriterion("overdue_time is null");
            return (Criteria) this;
        }

        public Criteria andOverdueTimeIsNotNull() {
            addCriterion("overdue_time is not null");
            return (Criteria) this;
        }

        public Criteria andOverdueTimeEqualTo(Integer value) {
            addCriterion("overdue_time =", value, "overdueTime");
            return (Criteria) this;
        }

        public Criteria andOverdueTimeNotEqualTo(Integer value) {
            addCriterion("overdue_time <>", value, "overdueTime");
            return (Criteria) this;
        }

        public Criteria andOverdueTimeGreaterThan(Integer value) {
            addCriterion("overdue_time >", value, "overdueTime");
            return (Criteria) this;
        }

        public Criteria andOverdueTimeGreaterThanOrEqualTo(Integer value) {
            addCriterion("overdue_time >=", value, "overdueTime");
            return (Criteria) this;
        }

        public Criteria andOverdueTimeLessThan(Integer value) {
            addCriterion("overdue_time <", value, "overdueTime");
            return (Criteria) this;
        }

        public Criteria andOverdueTimeLessThanOrEqualTo(Integer value) {
            addCriterion("overdue_time <=", value, "overdueTime");
            return (Criteria) this;
        }

        public Criteria andOverdueTimeIn(List<Integer> values) {
            addCriterion("overdue_time in", values, "overdueTime");
            return (Criteria) this;
        }

        public Criteria andOverdueTimeNotIn(List<Integer> values) {
            addCriterion("overdue_time not in", values, "overdueTime");
            return (Criteria) this;
        }

        public Criteria andOverdueTimeBetween(Integer value1, Integer value2) {
            addCriterion("overdue_time between", value1, value2, "overdueTime");
            return (Criteria) this;
        }

        public Criteria andOverdueTimeNotBetween(Integer value1, Integer value2) {
            addCriterion("overdue_time not between", value1, value2, "overdueTime");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(String value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(String value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(String value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(String value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(String value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(String value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLike(String value) {
            addCriterion("status like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotLike(String value) {
            addCriterion("status not like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<String> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<String> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(String value1, String value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(String value1, String value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andSortNoIsNull() {
            addCriterion("sort_no is null");
            return (Criteria) this;
        }

        public Criteria andSortNoIsNotNull() {
            addCriterion("sort_no is not null");
            return (Criteria) this;
        }

        public Criteria andSortNoEqualTo(Integer value) {
            addCriterion("sort_no =", value, "sortNo");
            return (Criteria) this;
        }

        public Criteria andSortNoNotEqualTo(Integer value) {
            addCriterion("sort_no <>", value, "sortNo");
            return (Criteria) this;
        }

        public Criteria andSortNoGreaterThan(Integer value) {
            addCriterion("sort_no >", value, "sortNo");
            return (Criteria) this;
        }

        public Criteria andSortNoGreaterThanOrEqualTo(Integer value) {
            addCriterion("sort_no >=", value, "sortNo");
            return (Criteria) this;
        }

        public Criteria andSortNoLessThan(Integer value) {
            addCriterion("sort_no <", value, "sortNo");
            return (Criteria) this;
        }

        public Criteria andSortNoLessThanOrEqualTo(Integer value) {
            addCriterion("sort_no <=", value, "sortNo");
            return (Criteria) this;
        }

        public Criteria andSortNoIn(List<Integer> values) {
            addCriterion("sort_no in", values, "sortNo");
            return (Criteria) this;
        }

        public Criteria andSortNoNotIn(List<Integer> values) {
            addCriterion("sort_no not in", values, "sortNo");
            return (Criteria) this;
        }

        public Criteria andSortNoBetween(Integer value1, Integer value2) {
            addCriterion("sort_no between", value1, value2, "sortNo");
            return (Criteria) this;
        }

        public Criteria andSortNoNotBetween(Integer value1, Integer value2) {
            addCriterion("sort_no not between", value1, value2, "sortNo");
            return (Criteria) this;
        }

        public Criteria andIsDelIsNull() {
            addCriterion("is_del is null");
            return (Criteria) this;
        }

        public Criteria andIsDelIsNotNull() {
            addCriterion("is_del is not null");
            return (Criteria) this;
        }

        public Criteria andIsDelEqualTo(String value) {
            addCriterion("is_del =", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelNotEqualTo(String value) {
            addCriterion("is_del <>", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelGreaterThan(String value) {
            addCriterion("is_del >", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelGreaterThanOrEqualTo(String value) {
            addCriterion("is_del >=", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelLessThan(String value) {
            addCriterion("is_del <", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelLessThanOrEqualTo(String value) {
            addCriterion("is_del <=", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelLike(String value) {
            addCriterion("is_del like", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelNotLike(String value) {
            addCriterion("is_del not like", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelIn(List<String> values) {
            addCriterion("is_del in", values, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelNotIn(List<String> values) {
            addCriterion("is_del not in", values, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelBetween(String value1, String value2) {
            addCriterion("is_del between", value1, value2, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelNotBetween(String value1, String value2) {
            addCriterion("is_del not between", value1, value2, "isDel");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdIsNull() {
            addCriterion("create_user_id is null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdIsNotNull() {
            addCriterion("create_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdEqualTo(String value) {
            addCriterion("create_user_id =", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdNotEqualTo(String value) {
            addCriterion("create_user_id <>", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdGreaterThan(String value) {
            addCriterion("create_user_id >", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdGreaterThanOrEqualTo(String value) {
            addCriterion("create_user_id >=", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdLessThan(String value) {
            addCriterion("create_user_id <", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdLessThanOrEqualTo(String value) {
            addCriterion("create_user_id <=", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdLike(String value) {
            addCriterion("create_user_id like", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdNotLike(String value) {
            addCriterion("create_user_id not like", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdIn(List<String> values) {
            addCriterion("create_user_id in", values, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdNotIn(List<String> values) {
            addCriterion("create_user_id not in", values, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdBetween(String value1, String value2) {
            addCriterion("create_user_id between", value1, value2, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdNotBetween(String value1, String value2) {
            addCriterion("create_user_id not between", value1, value2, "createUserId");
            return (Criteria) this;
        }

        public Criteria andModifyTimeIsNull() {
            addCriterion("modify_time is null");
            return (Criteria) this;
        }

        public Criteria andModifyTimeIsNotNull() {
            addCriterion("modify_time is not null");
            return (Criteria) this;
        }

        public Criteria andModifyTimeEqualTo(Date value) {
            addCriterion("modify_time =", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeNotEqualTo(Date value) {
            addCriterion("modify_time <>", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeGreaterThan(Date value) {
            addCriterion("modify_time >", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("modify_time >=", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeLessThan(Date value) {
            addCriterion("modify_time <", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeLessThanOrEqualTo(Date value) {
            addCriterion("modify_time <=", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeIn(List<Date> values) {
            addCriterion("modify_time in", values, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeNotIn(List<Date> values) {
            addCriterion("modify_time not in", values, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeBetween(Date value1, Date value2) {
            addCriterion("modify_time between", value1, value2, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeNotBetween(Date value1, Date value2) {
            addCriterion("modify_time not between", value1, value2, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyUserIdIsNull() {
            addCriterion("modify_user_id is null");
            return (Criteria) this;
        }

        public Criteria andModifyUserIdIsNotNull() {
            addCriterion("modify_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andModifyUserIdEqualTo(String value) {
            addCriterion("modify_user_id =", value, "modifyUserId");
            return (Criteria) this;
        }

        public Criteria andModifyUserIdNotEqualTo(String value) {
            addCriterion("modify_user_id <>", value, "modifyUserId");
            return (Criteria) this;
        }

        public Criteria andModifyUserIdGreaterThan(String value) {
            addCriterion("modify_user_id >", value, "modifyUserId");
            return (Criteria) this;
        }

        public Criteria andModifyUserIdGreaterThanOrEqualTo(String value) {
            addCriterion("modify_user_id >=", value, "modifyUserId");
            return (Criteria) this;
        }

        public Criteria andModifyUserIdLessThan(String value) {
            addCriterion("modify_user_id <", value, "modifyUserId");
            return (Criteria) this;
        }

        public Criteria andModifyUserIdLessThanOrEqualTo(String value) {
            addCriterion("modify_user_id <=", value, "modifyUserId");
            return (Criteria) this;
        }

        public Criteria andModifyUserIdLike(String value) {
            addCriterion("modify_user_id like", value, "modifyUserId");
            return (Criteria) this;
        }

        public Criteria andModifyUserIdNotLike(String value) {
            addCriterion("modify_user_id not like", value, "modifyUserId");
            return (Criteria) this;
        }

        public Criteria andModifyUserIdIn(List<String> values) {
            addCriterion("modify_user_id in", values, "modifyUserId");
            return (Criteria) this;
        }

        public Criteria andModifyUserIdNotIn(List<String> values) {
            addCriterion("modify_user_id not in", values, "modifyUserId");
            return (Criteria) this;
        }

        public Criteria andModifyUserIdBetween(String value1, String value2) {
            addCriterion("modify_user_id between", value1, value2, "modifyUserId");
            return (Criteria) this;
        }

        public Criteria andModifyUserIdNotBetween(String value1, String value2) {
            addCriterion("modify_user_id not between", value1, value2, "modifyUserId");
            return (Criteria) this;
        }

        public Criteria andBagIntroduceIsNull() {
            addCriterion("bag_introduce is null");
            return (Criteria) this;
        }

        public Criteria andBagIntroduceIsNotNull() {
            addCriterion("bag_introduce is not null");
            return (Criteria) this;
        }

        public Criteria andBagIntroduceEqualTo(String value) {
            addCriterion("bag_introduce =", value, "bagIntroduce");
            return (Criteria) this;
        }

        public Criteria andBagIntroduceNotEqualTo(String value) {
            addCriterion("bag_introduce <>", value, "bagIntroduce");
            return (Criteria) this;
        }

        public Criteria andBagIntroduceGreaterThan(String value) {
            addCriterion("bag_introduce >", value, "bagIntroduce");
            return (Criteria) this;
        }

        public Criteria andBagIntroduceGreaterThanOrEqualTo(String value) {
            addCriterion("bag_introduce >=", value, "bagIntroduce");
            return (Criteria) this;
        }

        public Criteria andBagIntroduceLessThan(String value) {
            addCriterion("bag_introduce <", value, "bagIntroduce");
            return (Criteria) this;
        }

        public Criteria andBagIntroduceLessThanOrEqualTo(String value) {
            addCriterion("bag_introduce <=", value, "bagIntroduce");
            return (Criteria) this;
        }

        public Criteria andBagIntroduceLike(String value) {
            addCriterion("bag_introduce like", value, "bagIntroduce");
            return (Criteria) this;
        }

        public Criteria andBagIntroduceNotLike(String value) {
            addCriterion("bag_introduce not like", value, "bagIntroduce");
            return (Criteria) this;
        }

        public Criteria andBagIntroduceIn(List<String> values) {
            addCriterion("bag_introduce in", values, "bagIntroduce");
            return (Criteria) this;
        }

        public Criteria andBagIntroduceNotIn(List<String> values) {
            addCriterion("bag_introduce not in", values, "bagIntroduce");
            return (Criteria) this;
        }

        public Criteria andBagIntroduceBetween(String value1, String value2) {
            addCriterion("bag_introduce between", value1, value2, "bagIntroduce");
            return (Criteria) this;
        }

        public Criteria andBagIntroduceNotBetween(String value1, String value2) {
            addCriterion("bag_introduce not between", value1, value2, "bagIntroduce");
            return (Criteria) this;
        }

        public Criteria andBuyCountIsNull() {
            addCriterion("buy_count is null");
            return (Criteria) this;
        }

        public Criteria andBuyCountIsNotNull() {
            addCriterion("buy_count is not null");
            return (Criteria) this;
        }

        public Criteria andBuyCountEqualTo(Integer value) {
            addCriterion("buy_count =", value, "buyCount");
            return (Criteria) this;
        }

        public Criteria andBuyCountNotEqualTo(Integer value) {
            addCriterion("buy_count <>", value, "buyCount");
            return (Criteria) this;
        }

        public Criteria andBuyCountGreaterThan(Integer value) {
            addCriterion("buy_count >", value, "buyCount");
            return (Criteria) this;
        }

        public Criteria andBuyCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("buy_count >=", value, "buyCount");
            return (Criteria) this;
        }

        public Criteria andBuyCountLessThan(Integer value) {
            addCriterion("buy_count <", value, "buyCount");
            return (Criteria) this;
        }

        public Criteria andBuyCountLessThanOrEqualTo(Integer value) {
            addCriterion("buy_count <=", value, "buyCount");
            return (Criteria) this;
        }

        public Criteria andBuyCountIn(List<Integer> values) {
            addCriterion("buy_count in", values, "buyCount");
            return (Criteria) this;
        }

        public Criteria andBuyCountNotIn(List<Integer> values) {
            addCriterion("buy_count not in", values, "buyCount");
            return (Criteria) this;
        }

        public Criteria andBuyCountBetween(Integer value1, Integer value2) {
            addCriterion("buy_count between", value1, value2, "buyCount");
            return (Criteria) this;
        }

        public Criteria andBuyCountNotBetween(Integer value1, Integer value2) {
            addCriterion("buy_count not between", value1, value2, "buyCount");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}